package com.tjetc.component;

import com.tjetc.annotation.Autowired;
import com.tjetc.annotation.Component;
import com.tjetc.annotation.InitializingBean;
import com.tjetc.annotation.Scope;

/**
 * @author gaoyongxiang
 * @version v1.0
 * @date 2025/9/3
 */
@Component
@Scope("prototype")
public class UserController implements InitializingBean {

    @Autowired
    private UserService userService;

    public void f() {
        userService.f();
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("UserController初始化操作");
    }
}